<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="ClientTemplate.xhtml">   
        <ui:define name="body"> 
            <h:form>
                <p:panel style="width: 100%">
                    <p:panelGrid columns="2" >
                        
                        <h:outputLabel value="Order" for="odID" />
                        <p:inputText id="odID" value="#{complaintController.selected.odID}" title="Order" />
                        

                        <h:outputLabel  value="User" for="usID" />
                        <p:inputText id="usID" value="#{loginController.userLogin.usID}" title="User" />
                        
                        <h:outputLabel value="Description :" for="cpDescription" /> 
                        <h:inputTextarea id="cpDescription" value="#{complaintController.selected.cpDescription}" title="Description" />
                        
                        <h:outputLabel value=" Created Date:" for="cpCreated" /> 
                        <p:calendar id="cpCreated" navigator="true" effect="explode"
                                    pattern="MM/dd/yyyy " 
                                    value="#{complaintController.selected.cpCreated}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </p:calendar>
                        
                        <f:facet name="footer">
                            <p:commandButton action="#{complaintController.create}" value="Save" icon="ui-icon-check"/>
                        </f:facet>
                    </p:panelGrid>
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>
</html>

